package com.zyndev.tool.validation.constraints;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * @author 张瑀楠 wb.yunan.zhang@renren-inc.com
 * @version 1.0
 * time: 2017/11/30 14:16
 * TODO:
 */
@Target({ FIELD, TYPE })
@Retention(RUNTIME)
public @interface NotNull {

    String message() default "该对应不能为空";
}
